package br.com.salao.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="dia_semana")
public class DiaSemana implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue	(strategy = GenerationType.AUTO)
	private int id;
	private boolean segunda;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaIniSegunda;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaFimSegunda;

	private boolean terca;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaIniTerca;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaFimTerca;

	private boolean quarta;
	
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaIniQuarta;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaFimQuarta;

	private boolean quinta;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaIniQuinta;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaFimQuinta;

	private boolean sexta;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaIniSexta;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaFimSexta;

	private boolean sabado;
	@Temporal(TemporalType.TIME)
	private Date horaIniSabado;
	@Temporal(TemporalType.TIME)
	private Date horaFimSabado;

	private boolean domingo;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaIniDomingo;
	
	@Temporal(TemporalType.TIME)
	@Column(nullable=true)
	private Date horaFimDomingo;
	@OneToOne
	private Estabelecimento estabelecimento;
	
	public DiaSemana(){
		this.segunda=true;
		this.terca=true;
		this.quarta=true;
		this.quinta=true;
		this.sexta=true;
		this.sabado=true;
		this.domingo=true;
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public boolean isSegunda() {
		return segunda;
	}
	
	public void setSegunda(boolean segunda) {
		this.segunda = segunda;
	}
	
	public Date getHoraIniSegunda() {
		return horaIniSegunda;
	}
	
	public void setHoraIniSegunda(Date horaIniSegunda) {
		this.horaIniSegunda = horaIniSegunda;
	}
	
	public Date getHoraFimSegunda() {
		return horaFimSegunda;
	}
	
	public void setHoraFimSegunda(Date horaFimSegunda) {
		this.horaFimSegunda = horaFimSegunda;
	}
	
	public boolean isTerca() {
		return terca;
	}
	
	public void setTerca(boolean terca) {
		this.terca = terca;
	}
	
	public Date getHoraIniTerca() {
		return horaIniTerca;
	}
	
	public void setHoraIniTerca(Date horaIniTerca) {
		this.horaIniTerca = horaIniTerca;
	}
	
	public Date getHoraFimTerca() {
		return horaFimTerca;
	}
	
	public void setHoraFimTerca(Date horaFimTerca) {
		this.horaFimTerca = horaFimTerca;
	}
	
	public boolean isQuarta() {
		return quarta;
	}
	
	public void setQuarta(boolean quarta) {
		this.quarta = quarta;
	}
	
	public Date getHoraIniQuarta() {
		return horaIniQuarta;
	}
	
	public void setHoraIniQuarta(Date horaIniQuarta) {
		this.horaIniQuarta = horaIniQuarta;
	}
	
	public Date getHoraFimQuarta() {
		return horaFimQuarta;
	}
	
	public void setHoraFimQuarta(Date horaFimQuarta) {
		this.horaFimQuarta = horaFimQuarta;
	}
	
	public boolean isQuinta() {
		return quinta;
	}
	
	public void setQuinta(boolean quinta) {
		this.quinta = quinta;
	}
	
	public Date getHoraIniQuinta() {
		return horaIniQuinta;
	}
	
	public void setHoraIniQuinta(Date horaIniQuinta) {
		this.horaIniQuinta = horaIniQuinta;
	}
	
	public Date getHoraFimQuinta() {
		return horaFimQuinta;
	}
	
	public void setHoraFimQuinta(Date horaFimQuinta) {
		this.horaFimQuinta = horaFimQuinta;
	}
	
	public boolean isSexta() {
		return sexta;
	}
	
	public void setSexta(boolean sexta) {
		this.sexta = sexta;
	}
	
	public Date getHoraIniSexta() {
		return horaIniSexta;
	}
	
	public void setHoraIniSexta(Date horaIniSexta) {
		this.horaIniSexta = horaIniSexta;
	}
	
	public Date getHoraFimSexta() {
		return horaFimSexta;
	}
	
	public void setHoraFimSexta(Date horaFimSexta) {
		this.horaFimSexta = horaFimSexta;
	}
	
	public boolean isSabado() {
		return sabado;
	}
	
	public void setSabado(boolean sabado) {
		this.sabado = sabado;
	}
	
	public Date getHoraIniSabado() {
		return horaIniSabado;
	}
	
	public void setHoraIniSabado(Date horaIniSabado) {
		this.horaIniSabado = horaIniSabado;
	}
	
	public Date getHoraFimSabado() {
		return horaFimSabado;
	}
	
	public void setHoraFimSabado(Date horaFimSabado) {
		this.horaFimSabado = horaFimSabado;
	}
	
	public boolean isDomingo() {
		return domingo;
	}
	
	public void setDomingo(boolean domingo) {
		this.domingo = domingo;
	}
	
	public Date getHoraIniDomingo() {
		return horaIniDomingo;
	}
	
	public void setHoraIniDomingo(Date horaIniDomingo) {
		this.horaIniDomingo = horaIniDomingo;
	}
	
	public Date getHoraFimDomingo() {
		return horaFimDomingo;
	}
	
	public void setHoraFimDomingo(Date horaFimDomingo) {
		this.horaFimDomingo = horaFimDomingo;
	}

	public Estabelecimento getEstabelecimento() {
		return estabelecimento;
	}

	public void setEstabelecimento(Estabelecimento estabelecimento) {
		this.estabelecimento = estabelecimento;
	}
	
}
